﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BriefList.aspx.cs" Inherits="Sdepci.InfoCode.Web.CodeDesign.BriefList" %>
<%@ Register src="../Includes/VerifyLoginState.ascx" tagname="VerifyLoginState" tagprefix="uc1" %>
<%@ Register src="../Includes/Pagination.ascx" tagname="Pagination" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>信息编码简要表</title>
    <link rel="stylesheet" type="text/css" href="../Css/Style.css" />
    <link rel="stylesheet" type="text/css" href="../Css/Backstage.css" />
    <script type="text/javascript" src="../Javascript/Common.js"></script>
    <script type="text/javascript" src="../Javascript/MyGrid.js"></script>
    <script type="text/javascript" src="../Javascript/Pagination.js"></script>
    <script type="text/javascript">
        function Add() {
            var ruleGuid;
            if (document.getElementById("hidRuleGuid").value.trim() != "") {
                ruleGuid = document.getElementById("hidRuleGuid").value.trim();
            } else {
                ruleGuid = window.showModalDialog("TypeRuleSelector.aspx", window, "dialogWidth:385px;dialogHeight:185px");
            }

            if (ruleGuid != undefined && ruleGuid != "") {
                var result = window.showModalDialog("InfoEdit.aspx?RuleGuid=" + ruleGuid, window, "dialogWidth:750px;dialogHeight:565px");
                if (result != undefined && result != "") {
                    window.showModalDialog("ShowCode.aspx?InfoCode=" + result, window, "dialogWidth:585px;dialogHeight:245px");
                    document.location = document.location;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:VerifyLoginState ID="VerifyLoginState1" runat="server" />
    <div id="container">
        <div id="editregion">
            <table style="width: 100%;">
                <caption>查询选项</caption>
                <tr> 
                    <td class="label">编码(模糊查询)：</td>
                    <td class="input">
                        <asp:TextBox ID="BriefCode" CssClass="text" MaxLength="20" runat="server"></asp:TextBox>
                    </td>
                    <td class="input" colspan="2" style="text-align: center;">
                        <asp:Button ID="btnSearch" CssClass="button" runat="server" Text="查询" onclick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="listregion">
            <table style="width: 100%;" id="tblCheck">
                <caption><asp:Label ID="lblTitle" runat="server" Text="">简要编码信息</asp:Label></caption>
                <thead>
                    <tr>
                        <td style="width: 10%;">
                            <label id="lblCheck" title="false" style="cursor: pointer; padding: 0px 2px 2px 2px;" onclick="javascript:SelectAll('lblCheck','ItemId','tblCheck');">全选</label>
                        </td>
                        <td style="width: 30%;">信息编码</td>
                        <td style="width: 15%;">创建者证档号</td>
                        <td style="width: 25%;">创建时间</td>
                        <td style="width: 20%;">编码类型</td>
                    </tr>
                </thead>
                <tbody id="MyGridTemplate" runat="server">
                    <tr>
                        <td><input type="checkbox" name="ItemId" value="{BriefGuid}" onclick="javascript:CancelAll('lblCheck','ItemId','tblCheck');" /></td>
                        <td>
                            <span style="cursor: pointer;" onclick="javascript:FixTips('<font color=#008000>编码说明：</font><br>{BriefDesc}');">{BriefCode}</span>
                        </td>
                        <td>{CreateUserId}</td>
                        <td>{CreateTime}</td>
                        <td>{RuleName}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="paginationregion">
            <uc2:Pagination ID="Pagination1" runat="server" />
        </div>
        <div id="buttonregion">
            <asp:HiddenField ID="hidRuleGuid" runat="server" />
            <input type="button" id="btnAdd" class="button" value="增加" onclick="javascript:Add();" />
            <asp:Button ID="btnExport" CssClass="button" runat="server" Text="导出Excel" UseSubmitBehavior="false" OnClientClick="javascript:if(document.getElementById('RecordCount').value > 1000){alert('数据量太大(超过1000)，请输入查询条件进行筛选过滤！');return false;}" onclick="btnExport_Click" />
        </div>
    </div>
    </form>
</body>
</html>

